import axios from "axios"


const api = {
    picBaseUrl : 'http://42.192.200.175:9157/file/downLoad?fileName=',
    getNewGoods(){
        return axios.post('/api/goods/show',{
            total : 0,
            size : 15,
            current: 1,
            optimizeCountSql : true,
            orders : [{column:'id',asc:false}],
            isSearchCount : true,
            hitCount : false,
            records:[]
        })
    },
    getHotGoods(){
        return axios.get('/api/goods/hotGoods',{
        })
    },
    login(username,password){
        return axios.post('login/user/login',{               
                params:{
                        username:username,
                        password:password     
                }      
        })
    }
}

export default api
